
#include "MassSourceADKernel.h"

registerMooseObject("TrilobitaApp", MassSourceADKernel);

InputParameters
MassSourceADKernel::validParams()
{
    InputParameters params = ADKernel::validParams();
    params.addClassDescription("pyrolysis mass source");
    return params;
}

MassSourceADKernel::MassSourceADKernel(const InputParameters& parameters)
    : ADKernel(parameters),
    _mass_source_strong_residual(getADMaterialProperty<Real>("mass_source_strong_residual"))
{
}

ADReal
MassSourceADKernel::computeQpResidual()
{
    return _mass_source_strong_residual[_qp] * _test[_i][_qp];
}
